package server;

import java.util.List;

import api.Person;
/**
 * @author Ann Raboschuk
 */
public interface IAmServer
{
   /**
    * Retrieves the list of all the persons from DB.
    * 
    * @return list of persons
    */
   List<Person> loadAll();
   
   /**
    * Stores new person in DB. 
    * 
    * @param person to be stored
    */
   Long add(Person person);
   
   /**
    * Updates specified person in DB.
    * 
    * @param person to be updated
    */
   void edit(Person person);
   
   /**
    * Deletes specified person from DB.
    * 
    * @param person to be deleted
    */
   void delete(Person person);   
}
